<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <% on error resume next dim rs,sql,imgpath imgpath="uppic/" If Request("page")="" Then pageNum=0 '否则就给变量赋值为传递来的page里的参数,来显示其他页 Else pageNum=RtnReplaceInt(request("page"),0) 'response.Write pagenum End if 'sql="update news set hits=hits+1 where id="&cstr(request("id")) 'conn.execute sql set rs=server.createobject("adodb.recordset") sql="select * from news where id="&RtnReplaceInt(request("id"),0) rs.open sql,conn,1,1 if rs.eof and rs.bof then rs.close set rs=nothing response.write "" response.end else if rs("link2")<>"" and not isnull(rs("link2")) then lk=rs("link2") rs.close set rs=nothing conn.close set conn=nothing response.Redirect lk end if Content=Replace(rs("content"),"|||","|||") '这里就是关键了 '我们用split函数将文章分段取出存入变量content ContentStr=split(Content,"|||") '按照刚才从URL参数中取得的要显示那页的那个变量,就循环显示一页 %> <%=homepage_caption%>
 
문등에 관하여 상업 문화 관광
 
<% rs.close set rs=Nothing conn.close set conn=nothing end if %>
<%if ubound(ContentStr)>0 then %> <% end if%>
<%=rs("title")%> <% if not isnull(rs("futitle")) or rs("futitle")<>"" then %>

<%=rs("futitle")%> <% end if %>
addtime: <%=year(rs("addtime"))&"-"&month(rs("addtime"))&"-"&day(rs("addtime"))%> from: wendengnet

<%=ContentStr(pagenum)%>

 

<% if cint(pagenum) >0 then %> &page=<%=cint(pagenum)-1%>">pre   <% end if %> <%For p = 0 to ubound(ContentStr) 'response.Write pagenum 'response.Write p %> &page=<%=p%>"> <% if p=cint(pagenum) then%> [<%=p+1%>] <% else %> [<%=p+1%>] <% end if %>   <% Next %> <% if cint(pagenum) &page=<%=cint(pagenum)+1%>">next   <% end if %>   
editor in charge:<%=rs("bianji")%>